<?php /* Smarty version Smarty-3.1.14, created on 2017-08-17 15:25:53
         compiled from "E:\phpStudy\WWW\zyshop\admin\templates\order_invoice.html" */ ?>
<?php /*%%SmartyHeaderCode:1545259954501cf4243-92878551%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'b48d5c19c0bc8d4629fac9b6c981bdf7b5d87fa0' => 
    array (
      0 => 'E:\\phpStudy\\WWW\\zyshop\\admin\\templates\\order_invoice.html',
      1 => 1502780388,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '1545259954501cf4243-92878551',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'back_order' => 0,
    'goods_list' => 0,
    'goods' => 0,
    'admin' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.14',
  'unifunc' => 'content_59954501d64869_30797589',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_59954501d64869_30797589')) {function content_59954501d64869_30797589($_smarty_tpl) {?><?php if (!is_callable('smarty_modifier_date_format')) include 'E:\\phpStudy\\WWW\\zyshop\\includes\\libs\\plugins\\modifier.date_format.php';
?><?php echo $_smarty_tpl->getSubTemplate ("header.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>

<style>
input {	width: 120px;}
textarea {	width: 350px;	height: 100px;}
tr {height: 48px; }
th {background-color:#f3f3f3; font-size:18px;}
td {font-size:14px;}
</style>
<body>
  <div class="fixed-bar">
    <div class="item-title">
      <h3>订单操作：生成发货单</h3>
    </div> 
  </div>
  <div class="fixed_bottom">
    <form method="post" action="order.php" enctype="multipart/form-data" id="aspnetForm" name="form1">
	  <div class="list-div" style="margin-bottom: 5px">
	    <table width="100%" cellpadding="3" cellspacing="1">
  		  <tr>
    		  <th colspan="4">基本设置</th>
  		  </tr>
  		  <tr>
    	     <td width="18%"><div align="right"><strong>订单号：</strong></div></td>
   		     <td width="34%"><?php echo $_smarty_tpl->tpl_vars['back_order']->value['order_sn'];?>
</td>
    	     <td><div align="right"><strong>下单时间：</strong></div></td>
    	     <td><?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['back_order']->value['add_time'],'%Y-%m-%d %H:%M:%I');?>
</td>
  		  </tr>
  		  <tr>
    	     <td><div align="right"><strong>购货人：</strong></div></td>
    	     <td><?php if ($_smarty_tpl->tpl_vars['back_order']->value['user_name']==''){?>匿名用户<?php }else{ ?><?php echo $_smarty_tpl->tpl_vars['back_order']->value['user_name'];?>
<?php }?></td>
    	     <td><div align="right"><strong>缺货处理：</strong></div></td>
    	     <td><?php echo $_smarty_tpl->tpl_vars['back_order']->value['how_oos'];?>
</td>
  		  </tr>
  		  <tr>
    	     <td><div align="right"><strong>配送方式：</strong></div></td>
    	     <td><?php echo $_smarty_tpl->tpl_vars['back_order']->value['shipping_name'];?>
</td>
    	     <td><div align="right"><strong>配送费用：</strong></div></td>
    	     <td><?php echo $_smarty_tpl->tpl_vars['back_order']->value['shipping_fee'];?>
</td>
  		  </tr>
  		  <tr>
    	     <td><div align="right"><strong>是否保价：</strong></div></td>
    	     <td><?php if ($_smarty_tpl->tpl_vars['back_order']->value['insure_yn']==1){?>否<?php }else{ ?>是<?php }?></td>
    	     <td><div align="right"><strong>保价费用：</strong></div></td>
    	     <td><?php echo (($tmp = @$_smarty_tpl->tpl_vars['back_order']->value['insure_fee'])===null||$tmp==='' ? 0.00 : $tmp);?>
</td>
  		  </tr>
  		  <tr>
    	     <th colspan="4">收货人信息</th>
    	  </tr>
  		  <tr>
    	     <td><div align="right"><strong>收货人：</strong></div></td>
    	     <td><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['back_order']->value['consignee'], ENT_QUOTES, 'UTF-8', true);?>
</td>
    	     <td><div align="right"><strong>电子邮件：</strong></div></td>
    	     <td><?php echo $_smarty_tpl->tpl_vars['back_order']->value['email'];?>
</td>
  		  </tr>
  		  <tr>
    	     <td><div align="right"><strong>地址：</strong></div></td>
    	     <td><?php echo $_smarty_tpl->tpl_vars['back_order']->value['region'];?>
<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['back_order']->value['address'], ENT_QUOTES, 'UTF-8', true);?>
</td>
    	     <td><div align="right"><strong>邮编：</strong></div></td>
    	     <td><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['back_order']->value['zipcode'], ENT_QUOTES, 'UTF-8', true);?>
</td>
  		  </tr>
  		  <tr>
    	     <td><div align="right"><strong>电话：</strong></div></td>
    	     <td><?php echo $_smarty_tpl->tpl_vars['back_order']->value['tel'];?>
</td>
    	     <td><div align="right"><strong>手机：</strong></div></td>
    	     <td><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['back_order']->value['mobile'], ENT_QUOTES, 'UTF-8', true);?>
</td>
  		  </tr>
  		  <tr>
    	     <td><div align="right"><strong>标志性建筑：</strong></div></td>
    	     <td><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['back_order']->value['sign_building'], ENT_QUOTES, 'UTF-8', true);?>
</td>
    	     <td><div align="right"><strong>最佳送货时间：</strong></div></td>
    	     <td><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['back_order']->value['best_time'], ENT_QUOTES, 'UTF-8', true);?>
</td>
  		  </tr>
  		  <tr>
    	     <td><div align="right"><strong>客户给商家的留言：</strong></div></td>
    	     <td colspan="3"><?php echo $_smarty_tpl->tpl_vars['back_order']->value['postscript'];?>
</td>
  		  </tr>
	   </table>
    </div>
    <div class="list-div" style="margin-bottom: 5px">
      <table width="100%" cellpadding="3" cellspacing="1">
        <tr>
          <th colspan="8" scope="col">商品信息</th>
        </tr>
        <tr>
          <td><div align="center"><strong>商品名称</strong></div></td>
          <td><div align="center"><strong>货号</strong></div></td>
          <td><div align="center"><strong>属性</strong></div></td>
          <td><div align="center"><strong>库存</strong></div></td>
          <td><div align="center"><strong>数量</strong></div></td>
          <td><div align="center"><strong>已发货数量</strong></div></td>
          <td><div align="center"><strong>此单发货数量</strong></div></td>
        </tr>
        <?php  $_smarty_tpl->tpl_vars['goods'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['goods']->_loop = false;
 $_smarty_tpl->tpl_vars['k'] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['goods_list']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['goods']->key => $_smarty_tpl->tpl_vars['goods']->value){
$_smarty_tpl->tpl_vars['goods']->_loop = true;
 $_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['goods']->key;
?>
        <tr>
          <td><div style="text-align:center"><?php echo $_smarty_tpl->tpl_vars['goods']->value['goods_name'];?>
</div></td>
          <td><div style="text-align:center"><?php echo $_smarty_tpl->tpl_vars['goods']->value['goods_sn'];?>
</div></td>
          <td><div style="text-align:center"><?php echo $_smarty_tpl->tpl_vars['goods']->value['goods_attr'];?>
</div></td>
          <td><div style="text-align:center"><?php echo $_smarty_tpl->tpl_vars['goods']->value['number'];?>
</div></td>
          <td><div style="text-align:center"><?php echo $_smarty_tpl->tpl_vars['goods']->value['goods_number'];?>
</div></td>
          <td><div style="text-align:center"><?php echo $_smarty_tpl->tpl_vars['goods']->value['send_number'];?>
</div></td>
          <td><div style="text-align:center"><input type="text" name="send_number" value='<?php echo $_smarty_tpl->tpl_vars['goods']->value['send'];?>
'></div></td>
        </tr>
        <?php } ?>
      </table>
    </div>
      <table width="100%" cellpadding="3" cellspacing="1">
        <tr style="text-align:center">
          <input type="hidden" name="act" value='invoice_add'>
          <input type="hidden" name="order_sn" value='<?php echo $_smarty_tpl->tpl_vars['back_order']->value['order_sn'];?>
'>
          <input type="hidden" name="order_id" value='<?php echo $_smarty_tpl->tpl_vars['back_order']->value['order_id'];?>
'>
          <input type="hidden" name="add_time" value='<?php echo $_smarty_tpl->tpl_vars['back_order']->value['add_time'];?>
'>
          <input type="hidden" name="shipping_id" value='<?php echo $_smarty_tpl->tpl_vars['back_order']->value['shipping_id'];?>
'>
          <input type="hidden" name="shipping_name" value='<?php echo $_smarty_tpl->tpl_vars['back_order']->value['shipping_name'];?>
'>
          <input type="hidden" name="user_id" value='<?php echo $_smarty_tpl->tpl_vars['admin']->value['user_id'];?>
'>
          <input type="hidden" name="user_name" value='<?php echo $_smarty_tpl->tpl_vars['admin']->value['user_name'];?>
'>
          <input type="hidden" name="consignee" value='<?php echo $_smarty_tpl->tpl_vars['back_order']->value['consignee'];?>
'>
          <input type="hidden" name="address" value='<?php echo $_smarty_tpl->tpl_vars['back_order']->value['address'];?>
'>
          <input type="hidden" name="country" value='<?php echo $_smarty_tpl->tpl_vars['back_order']->value['country'];?>
'>
          <input type="hidden" name="province" value='<?php echo $_smarty_tpl->tpl_vars['back_order']->value['province'];?>
'>
          <input type="hidden" name="city" value='<?php echo $_smarty_tpl->tpl_vars['back_order']->value['city'];?>
'>
          <input type="hidden" name="district" value='<?php echo $_smarty_tpl->tpl_vars['back_order']->value['district'];?>
'>
          <input type="hidden" name="email" value='<?php echo $_smarty_tpl->tpl_vars['back_order']->value['email'];?>
'>
          <input type="hidden" name="tel" value='<?php echo $_smarty_tpl->tpl_vars['back_order']->value['tel'];?>
'>
          <input type="hidden" name="how_oos" value='<?php echo $_smarty_tpl->tpl_vars['back_order']->value['how_oos'];?>
'>
          <input type="hidden" name="insure_fee" value='<?php echo $_smarty_tpl->tpl_vars['back_order']->value['insure_fee'];?>
'>
          <input type="hidden" name="shipping_fee" value='<?php echo $_smarty_tpl->tpl_vars['back_order']->value['shipping_fee'];?>
'>
          <input type="hidden" name="shipping_fee" value='<?php echo $_smarty_tpl->tpl_vars['back_order']->value['shipping_fee'];?>
'>
          <td class="style1">&nbsp;</td>
          <td><a href="JavaScript:void(0);" class="btn" onclick="$('#tj').click()"><span>确认生成进货单</span></a>
          </td>
        </tr>
      </table>
        <input type="reset" id="cz" style="display: none;">
        <input type="submit" id="tj" style="display:none;";>
    </form>
  </div>
</body>
<script>
   function reset(){
        $('input').val('');
        $('textarea').text('');
    }
</script><?php }} ?>